#ifndef STATUSBAR_H
#define STATUSBAR_H

#include <QStatusBar>
#include <QLabel>

class StatusBar : public QStatusBar
{
Q_OBJECT
public:
    StatusBar(QWidget *parent = nullptr);
    virtual ~StatusBar();

private:
    void initStatusBar();
    virtual void changeEvent(QEvent *event);
    void initTrans();

public slots:
    void onCursorPosChanged(QPoint &cursorpos);

private:
    QLabel* m_pStatusBarLabel;
    QLabel* m_pCursorPosLabel;
};
#endif // STATUSBAR_H
